package online.longzipeng.cinemasys.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import online.longzipeng.cinemasys.dto.session.SessionQueryResponseDTO;
import online.longzipeng.cinemasys.entity.Session;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lzp
 * @since 2021-04-09
 */
@Repository
public interface SessionMapper extends BaseMapper<Session> {

    IPage<SessionQueryResponseDTO> getListPage(Page<SessionQueryResponseDTO> sessionPage,@Param(Constants.WRAPPER) Wrapper<SessionQueryResponseDTO> qw);

    List<SessionQueryResponseDTO> getList(@Param(Constants.WRAPPER) Wrapper<SessionQueryResponseDTO> qw);

    SessionQueryResponseDTO findById(Long id);
}
